var e = require("../../../@babel/runtime/helpers/defineProperty"), t = require("../../../@babel/runtime/helpers/objectWithoutProperties"), a = [ "url" ], r = getApp();

Page({
    data: {
        language: "",
        regional: "请选择快递公司",
        filterExpressCompanys: [],
        inputExpressCompanyName: "",
        dateshow_1: !1,
        orderType: "",
        order_id: "",
        options: [],
        columns: [],
        addresseeInfo: "",
        address: "",
        mobile: "",
        receiver: "",
        order_data: "",
        order_pay_id: "",
        dispatch_type_id: "",
        pay_type_id: "",
        hotel_start: "",
        hotel_end: "",
        night_day: "",
        hotel_name: "",
        dialogVisible: !1,
        expressName: "",
        numberName: "",
        dataItem:{value:140,api:1},
        package_deliver: {},
        showQrcode: !1,
        qrcode_url: "",
        showDiyForm: !1,
        diyform: {},
        jurisdiction_set: 0,
        showID: "",
        showBarter: !1,
        showBarter_value: null,
        orderPayId: null,
        showPacket: !1,
        shrinkPacket: !1,
        timer: null,
        hasPacket: !1,
        showKefu: !1,
        phone_bill: {},
        customForm: [],
        refundShow: !1,
        refundText: "",
        integral: "积分",
        custom_receipt_confirmation_html: "",
        custom_receipt_confirmation_show: !1,
        custom_receipt_confirmation_btn: {},
        custom_receipt_confirmation_item: {},
        electricity_bill_pro: {},
        oil_recharge: {},
        aggregation_cps_recharge_bill: !1,
        inventoryApplyPopup: !1,
        inventoryApplyList: [],
        inventoryApplyRadio: null,
        overlayShow: !1,
        drawShow: !1,
        drawType: 1,
        newBlindBoxData: {},
        travelAroundDetail: {},
        aroundOrderDetatil: {},
        supplyCakeOrder: {},
        show_detail_pay: 1
    },
    onLoad: function(e) {
        if (console.log("options:::::", e), e.scene) {
            console.log("option.scene:::::", e.scene), console.log(decodeURIComponent(e.scene));
            var t = decodeURIComponent(e.scene);
            if (t) {
                var a = [];
                a = t.split("&");
                for (var o = 0; o < a.length; o++) {
                    var i;
                    i = a[o].split("="), console.log(i), "orderType" == i[0] ? this.setData({
                        orderType: i[1]
                    }) : "verifier" != this.data.orderType && this.setData({
                        orderType: "store"
                    }), "id" == i[0] ? this.setData({
                        order_id: i[1]
                    }) : "mid" == i[0] ? r._setMid(i[1]) : "is_clerk" == i[0] || "cl" == i[0] ? this.setData({
                        is_clerk: i[1]
                    }) : "Q" == i[0] ? r.globalData.STORE_ID = i[1] : (console.log("error:: 核销员进入错误"), 
                    wx.hideLoading());
                }
                console.log(this.data.order_id);
            }
        } else e.order_id && this.setData({
            order_id: e.order_id
        }), e.debt_shop_member_type && this.setData({
            debt_shop_member_type: e.debt_shop_member_type
        }), e.orderType && "groups" == e.orderType ? this.setData({
            orderType: "groups"
        }) : e.orderType ? this.setData({
            orderType: e.orderType
        }) : this.setData({
            orderType: "shop"
        });
        e.order_id && this.setData({
            order_id: e.order_id
        }), e.keywork && this.setData({
            keywork: e.keywork
        }), e.memberId && this.setData({
            memberId: e.memberId
        }), 0 == e.show_detail_pay && this.setData({
            show_detail_pay: 0
        });
        var s = wx.getStorageSync("yz_basic_info");
        this.setData({
            showDiyForm: !1,
            vip_show: !!s.globalParameter.vip_show && s.globalParameter.vip_show
        });
    },
    onReady: function() {
        var e = wx.getStorageSync("langIndex");
        this.setData({
            language: e.en
        });
        var t = wx.getStorageSync("integral");
        t && this.setData({
            integral: t
        });
    },
    onShow: function() {
        this.getNetData(), this.setData({
            showPacket: !1,
            shrinkPacket: !1,
            timer: null,
            hasPacket: !1
        });
        var e = wx.getStorageSync("yz_basic_info");
        e && 1 == e.globalParameter.consume_red_packet_status && this.checkoutConsumePacket();
    },
    toUrl: function(e) {
        var t = e.currentTarget.dataset || {};
        this.wxRouterLink(t);
    },
    wxRouterLink: function(e) {
        var r = "", o = e.url, i = t(e, a);
        Object.keys(i).forEach(function(e) {
            "" !== i[e] && (r += e + "=" + i[e] + "&");
        }), "" !== o && wx.navigateTo({
            url: o + "?" + r.slice(0, -1)
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    callPhone: function() {
        wx.makePhoneCall({
            phoneNumber: this.data.service_mobile
        });
    },
    phoneClick: function(e) {
        var t = e.target.dataset.phone;
        wx.makePhoneCall({
            phoneNumber: t,
            success: function() {},
            fail: function() {}
        });
    },
    copyMsg: function(e) {
        var t = e.target.dataset.msg;
        console.log(t), wx.setClipboardData({
            data: t,
            success: function(e) {
                wx.showToast({
                    title: "复制成功",
                    icon: "success",
                    duration: 2e3
                });
            },
            fail: function() {
                wx.showToast({
                    title: "复制失败",
                    icon: "error",
                    duration: 2e3
                });
            }
        });
    },
    closePop: function() {
        this.setData({
            showKefu: !1
        });
    },
    showMore: function(e) {
        var t = e.currentTarget.dataset.order.order_sn;
        this.data.showID == t ? this.setData({
            showID: ""
        }) : this.setData({
            showID: t
        });
    },
    startRotate: function() {
        var e = this;
        this.data.timer && clearInterval(this.data.timer), this.data.timer = setInterval(function() {
            e.setData({
                shrinkPacket: !e.data.shrinkPacket
            });
        }, 150);
    },
    onClickShow: function() {
        this.setData({
            showPacket: !0
        });
    },
    onClickHide: function() {
        this.setData({
            showPacket: !1
        });
    },
    toPacket: function() {
        wx.navigateTo({
            url: "/packageE/ConsumePacket/ConsumePacketSuccess/ConsumePacketSuccess?order_id=" + this.data.order_id.toString()
        });
    },
    checkoutConsumePacket: function() {
        var e = this, t = r.getNetAddresss("plugin.consume-red-packet.Frontend.Modules.Packet.Controllers.has.index");
        r._postNetWork({
            url: t,
            data: {
                order_id: this.data.order_id.toString().split(",")
            },
            success: function(t) {
                1 == t.data.result && (e.setData({
                    hasPacket: !0
                }), e.startRotate());
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    getKefu: function() {
        var e = this, t = "";
        this.data.order_data.has_many_order_goods.length > 0 && (t = this.data.order_data.has_many_order_goods[0].goods_id);
        var a = r.getNetAddresss("goods.customer-service.index");
        r._postNetWork({
            url: a,
            data: {
                goods_id: t
            },
            success: function(t) {
                var a = t.data;
                1 == a.result && e.setData({
                    customer_open: !a.data.hasOwnProperty("customer_open") || a.data.customer_open,
                    showKefu: !0,
                    cservice: a.data.cservice,
                    service_QRcode: a.data.service_QRcode,
                    service_mobile: a.data.service_mobile
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    showDiy: function(e) {
        if (e.currentTarget.dataset.from) {
            for (var t = 0; t <= e.currentTarget.dataset.from.length - 1; t++) "diyriqi" == e.currentTarget.dataset.from[t].type && (e.currentTarget.dataset.from[t].content = this.timestampToTime(1e3 * parseInt(e.currentTarget.dataset.from[t].content)));
            this.setData({
                showDiyForm: !0,
                diyform: e.currentTarget.dataset.from
            });
        }
    },
    timestampToTime: function(e) {
        var t = new Date(1e3 * e);
        return t.getFullYear() + "-" + ((t.getMonth() + 1 < 10 ? "0" + (t.getMonth() + 1) : t.getMonth() + 1) + "-") + (this.change(t.getDate()) + " ") + (this.change(t.getHours()) + ":") + (this.change(t.getMinutes()) + ":") + this.change(t.getSeconds());
    },
    change: function(e) {
        return e < 10 ? "0" + e : e;
    },
    onDiyFormClose: function() {
        this.setData({
            showDiyForm: !1
        });
    },
    getCompany: function() {
        var e = this, t = "";
        "supplier" == this.data.orderType ? t += r.getNetAddresss("plugin.supplier.frontend.order.express-company") : "subsidiary" == this.data.orderType ? t += r.getNetAddresss("plugin.subsidiary.frontend.order.express-company") : "storeMang" == this.data.orderType ? t += r.getNetAddresss("plugin.shop-assistant.frontend.order.expressCompanies") : t += r.getNetAddresss("plugin.store-cashier.frontend.store.center.sendOrder"), 
        t += "&order_id=" + e.data.order_id, r._getNetWork({
            url: t,
            success: function(t) {
                var a = t.data;
                if (1 == a.result) {
                    e.setData({
                        options: a.data.express_companies ? a.data.express_companies : []
                    });
                    var o = e.data.options.map(function(e) {
                        return e.name;
                    });
                    r._isTextEmpty(a.data.jurisdiction_set) || e.setData({
                        jurisdiction_set: a.data.jurisdiction_set
                    }), e.setData({
                        columns: o,
                        addresseeInfo: a.data.address,
                        address: a.data.address.address,
                        mobile: a.data.address.mobile,
                        receiver: a.data.address.realname
                    });
                } else wx.showToast({
                    icon: "none",
                    title: a.msg,
                    duration: 1500
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    getNetData: function() {
        var e = this, t = "";
        "cashier" == this.data.orderType ? t += r.getNetAddresss("plugin.store-cashier.frontend.Order.detail") : "store" == this.data.orderType ? t += r.getNetAddresss("plugin.store-cashier.frontend.store.order-detail") : "supplier" == this.data.orderType ? t += r.getNetAddresss("plugin.supplier.frontend.order.detail") : "subsidiary" == this.data.orderType ? t += r.getNetAddresss("plugin.subsidiary.frontend.order.detail") : "hotel" == this.data.orderType ? t += r.getNetAddresss("plugin.hotel.frontend.hotel.detail") : "hotel_center" == this.data.orderType ? t += r.getNetAddresss("plugin.hotel.frontend.hotel.center.order-detail") : "hotelcashier" == this.data.orderType ? t += r.getNetAddresss("plugin.hotel.frontend.Order.detail") : "lease_toy" == this.data.orderType ? t += r.getNetAddresss("plugin.lease-toy.api.order.order-detail.index") : "verifier" == this.data.orderType ? t += r.getNetAddresss("plugin.package-deliver.frontend.clerk-order-detail.index") : "pdy" == this.data.orderType ? t += r.getNetAddresss("plugin.package-delivery.frontend.detail.index") : "commission_activity" == this.data.orderType ? t += r.getNetAddresss("plugin.commission-activity.api.activity-inquire.order-detail") : "groups" == this.data.orderType ? t += r.getNetAddresss("plugin.fight-groups.frontend.controllers.detail.index") : "ywmgroups" == this.data.orderType ? t += r.getNetAddresss("plugin.ywm-fight-groups.frontend.controllers.detail.index") : "groupsBuy" == this.data.orderType ? (t += r.getNetAddresss("plugin.together-purchase.api.index.getTogetherData"), 
        t += "&art=orderDetail") : "grabGroup" == this.data.orderType ? (t += r.getNetAddresss("plugin.snatch-regiment.api.index.getSnatchData"), 
        t += "&art=orderDetail") : "pickup_card" == this.data.orderType ? t += r.getNetAddresss("plugin.picking-card.frontend.detail") : "picking-card-one" == this.data.orderType ? t += r.getNetAddresss("plugin.picking-card-one.frontend.detail") : "community_buying" == this.data.orderType ? t += r.getNetAddresss("plugin.package-deliver.frontend.order.detail.index") : "luck-draw" == this.data.orderType ? t += r.getNetAddresss("plugin.luck-draw.frontend.index.myPrizeDetail") : "newRetail" == this.data.orderType ? t += r.getNetAddresss("plugin.new-retail.frontend.orderData.detail") : "zhpGroup" == this.data.orderType ? t += r.getNetAddresss("plugin.zhp-group-lottery.frontend.detail.index") : "storeMang" == this.data.orderType ? t += r.getNetAddresss("plugin.shop-assistant.frontend.order.order-detail") : "warehouseTakeDelivery" == this.data.orderType ? t += r.getNetAddresss("plugin.warehouse.frontend.controllers.takeDelivery.order-detail") : "warehousePurchasing" == this.data.orderType ? t += r.getNetAddresss("plugin.warehouse.frontend.controllers.purchasing.order-detail") : "reserve_simple" == this.data.orderType ? t += r.getNetAddresss("plugin.reserve-simple.frontend.reserve-order.get-detail") : "ysSystem" == this.data.orderType ? t += r.getNetAddresss("plugin.ys-system.frontend.history-order.ys-detail") : "debt" == this.data.orderType ? (t += r.getNetAddresss("plugin.debt-shop.frontend.order-detail.index"), 
        t += "&order_id=" + e.data.order_id, t += "&member_type=" + e.data.debt_shop_member_type) : "travelAround" == this.data.orderType ? (t += r.getNetAddresss("plugin.travel-around.frontend.order.detail"), 
        t += "&order_id=" + e.data.order_id) : "sachertorte" == this.data.orderType ? (t += r.getNetAddresss("plugin.yz-supply-cake.frontend.order.detail"), 
        t += "&order_id=" + e.data.order_id) : t += r.getNetAddresss("order.detail"), this.data.is_clerk ? (t += "&order_id=" + e.data.order_id, 
        t += "&is_clerk=" + e.data.is_clerk) : "commission_activity" == this.data.orderType ? t += "&activity_id=" + e.data.order_id : t += "&order_id=" + e.data.order_id, 
        "customer" == this.data.keywork && (t = r.getNetAddresss("plugin.customer-center.frontend.controllers.customer.order-detail"), 
        "shop" === this.data.orderType ? t += "&order_type=order" : "hotel" === this.data.orderType ? t += "&order_type=hotel_order" : "lease_toy" === this.data.orderType ? t += "&order_type=lease_order" : "groups" === this.data.orderType ? t += "&order_type=fight_groups_order" : "grabGroup" === this.data.orderType && (t += "&order_type=snatch_regiment_order"), 
        t += "&order_id=" + e.data.order_id, t += "&member_id=" + e.data.memberId), r._getNetWork({
            url: t,
            success: function(t) {
                var a = t.data;
                if (1 == a.result) {
                    var o = {}, i = [];
                    if ((o = "groupsBuy" == e.data.orderType || "grabGroup" == e.data.orderType ? a.data.orderDetail : a.data).custom && 1 == e.data.is_clerk && (i = o.custom.form), 
                    "supplier" == e.data.orderType && e.setData({
                        jurisdiction_set: o.jurisdiction_set
                    }), o.reserve_date && e.setData({
                        reserveDate: o.reserve_date
                    }), e.setData({
                        order_data: o,
                        order_pay_id: o.order_pay_id,
                        dispatch_type_id: o.dispatch_type_id,
                        customForm: i,
                        custom_receipt_confirmation_html: o.receipt_goods_notice
                    }), o.aggregation_cps_recharge_bill && !r._isTextEmpty(o.aggregation_cps_recharge_bill.recharge_number) && e.setData({
                        aggregation_cps_recharge_bill: o.aggregation_cps_recharge_bill.recharge_number
                    }), "zhpGroup" == e.data.orderType) {
                        for (var s = 0; s < o.button_models.length; s++) "refund.apply.store" == o.button_models[s].api && o.button_models.splice(s, 1);
                        console.log(o), e.setData({
                            order_data: o
                        });
                    }
                    o.phone_bill && e.setData({
                        phone_bill: o.phone_bill
                    }), o.phone_bill_pro && e.setData({
                        phone_bill: o.phone_bill_pro
                    }), o.electricity_bill_pro && e.setData({
                        electricity_bill_pro: o.electricity_bill_pro
                    }), o.oil_recharge && e.setData({
                        oil_recharge: o.oil_recharge
                    }), o.address_info && !o.address_info.address ? e.setData({
                        address: o.address_info.store_address,
                        mobile: o.address_info.member_mobile,
                        receiver: o.address_info.member_realname
                    }) : o.address_info ? e.setData({
                        address: o.address_info.address,
                        mobile: o.address_info.mobile,
                        receiver: o.address_info.realname
                    }) : o.address && e.setData({
                        address: o.address.address,
                        mobile: o.address.mobile,
                        receiver: o.address.realname
                    }), o.automat && e.setData({
                        address: "",
                        mobile: "",
                        receiver: ""
                    }), e.setData({
                        pay_type_id: o.pay_type_id
                    }), "hotel" == e.data.orderType && (e.setData({
                        hotel_start: a.data.hotel_order.enter_at.split(" ")[0]
                    }), e.setData({
                        hotel_end: a.data.hotel_order.leave_at.split(" ")[0]
                    }), e.setData({
                        hotel_name: a.data.hotel_order.has_one_hotel.hotel_name
                    }), e.getDays(e.data.hotel_start, e.data.hotel_end)), 8 == o.dispatch_type_id ? e.setData({
                        package_deliver: o.package_deliver
                    }) : 15 == o.dispatch_type_id && e.setData({
                        package_deliver: o.package_delivery
                    }), "travelAround" == e.data.orderType && e.setData({
                        travelAroundDetail: o.travel_around_order,
                        aroundOrderDetatil: o.has_many_travel_around_order_detatil[0] || {}
                    }), "sachertorte" == e.data.orderType && e.setData({
                        supplyCakeOrder: o.yz_supply_cake_order
                    });
                } else wx.showToast({
                    title: a.msg,
                    icon: "none",
                    duration: 1500,
                    success: function() {
                        setTimeout(function() {
                            wx.navigateBack({
                                delta: 1
                            });
                        }, 1500);
                    }
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    getDays: function(e, t) {
        var a, r, o;
        a = e.split("-"), r = t.split("-");
        var i = new Date(a[0], a[1] - 1, a[2]), s = new Date(r[0], r[1] - 1, r[2]);
        o = parseInt(Math.abs(i - s) / 1e3 / 60 / 60 / 24), this.setData({
            night_day: o
        });
    },
    getCpsDetail: function(e) {
        var t = r.getNetAddresss("plugin.aggregation-cps.api.web.getGoodsUrl");
        r._getNetWork({
            url: t,
            data: {
                goods_id: e.goods_id
            },
            success: function(e) {
                var t = e.data;
                1 == t.result ? wx.navigateTo({
                    url: t.data.another_mini_route,
                    icon: "none",
                    duration: 1e3
                }) : wx.showToast({
                    icon: "none",
                    title: t.msg,
                    duration: 1500
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    toGoodsDetail: function(e) {
        var t = e.currentTarget.dataset.good;
        if ("107" != this.data.order_data.plugin_id && "150" != this.data.order_data.plugin_id && "31" != this.data.order_data.plugin_id) if ("71" != this.data.order_data.plugin_id) if (this.data.order_data.deposit_ladder && this.data.order_data.deposit_ladder.activity_id || this.data.order_data.deposit_ladder_dj && this.data.order_data.deposit_ladder_dj.activity_id) {
            var a = this.data.order_data.deposit_ladder && this.data.order_data.deposit_ladder.activity_id ? this.data.order_data.deposit_ladder.activity_id : this.data.order_data.deposit_ladder_dj.activity_id;
            wx.navigateTo({
                url: "/packageH/deposit_group/activity_index/activity_index?id=" + a
            });
        } else if (54 == this.data.order_data.plugin_id) {
            var r = null;
            t.store_id && 0 != t.store_id && "undefined" != t.store_id && (r = "/" + t.store_id), 
            wx.navigateTo({
                url: "/packageA/detail_v2/detail_v2?id=0" + r + "&name=group&fight_groups=" + t.goods_id
            });
        } else 151 == this.data.order_data.plugin_id ? (console.log("goods.goods_id", t.goods_id), 
        wx.navigateTo({
            url: "/packageA/detail_v2/detail_v2?id=0&name=ywmGroup&fight_groups=" + t.goods_id
        })) : 157 == this.data.order_data.plugin_id ? wx.navigateTo({
            url: "/packageF/sachertorte/sachertorteGoods/sachertorteGoods?id=".concat(t.goods_id)
        }) : 155 == this.data.order_data.plugin_id ? console.log(this.data.order_data.plugin_id, "新盲盒") : wx.navigateTo({
            url: "/packageA/detail_v2/detail_v2?id=" + t.goods_id
        }); else this.getCpsDetail(t);
    },
    operation: function(e) {
        var t = e.currentTarget.dataset.item, a = e.currentTarget.dataset.orderdata;
        console.log(t,'tttttt')
        if (this.setData({
            orderPayId: a.id
        }), 8 == t.value) this.checklogistics(a, t); else if (12 == t.value) this.deleteOrder(a, t); else if (10 == t.value) this.comment(a, t); else if (1 == t.value || "snatch_regiment_pay" == t.value) this.toPay(a, t); else if (13 == t.value || "snatch_regiment_refund" == t.value || "54" == t.value) this.getTemplate(a, t); else if (9 == t.value) this.cancleOrder(a, t); else if (5 == t.value) this.confirmOrder(a, t); else if (18 == t.value) this.toRefundDetail(a, t); else if ("cashierPay" == t.value) this.cashPayOrder(a, t); else if ("verification_code" == t.value) this.verification(a, t); else if (20 == t.value) console.log("现金支付"), 
        this.verificationCash(a, t); else if (3 == t.value) this.gotoRefund(a.id); else if (40 == t.value) this.gotoRefundCheck(a.id); else if (4 == t.value) this.gotoMakeSure(a.id); else if (21 == t.value) this.shopRecord(); else if (22 == t.value) this.payMoney(a, t); else if (101 == t.value) {
            var r = "/packageE/pickUpCard/pickUpCardReimburse/pickUpCardReimburse?orderid=" + a.id;
            "picking-card-one" != this.data.orderType && 95 != a.plugin_id || (r += "&plugin=one"), 
            wx.navigateTo({
                url: r
            });
        } else 23 == t.value || 60 == t.value ? 3 == a.dispatch_type_id ? this.sendGoogs() : (this.getCompany(), 
        this.setData({
            dialogVisible: !0
        })) : 24 == t.value || 61 == t.value ? this.deliverGoodsCancel(a, t) : 25 == t.value ? this.collectGoods(a, t) : 26 == t.value ? this.closeOrderPay(a, t) : 27 == t.value ? this.evaluate(t, a) : 28 == t.value ? this.truckList(t, a) : 41 == t.value ? this.getKefu() : 50 == t.value ? this.checkInvoice(t, a) : 51 == t.value ? "71" == a.plugin_id && wx.navigateTo({
            url: "/packageH/cpsPwd/cpsPwd?id=" + a.id
        }) : 56 == t.value ? wx.navigateTo({
            url: "/packageH/project_verification/MyProject/MyProject"
        }) : 11 == t.value ? this.confirmHotelOrder(t.api, a.id) : "coupon" == t.value ? wx.navigateTo({
            url: "/packageD/coupon_share/coupon_share?orderid=" + a.id
        }) : "lease_toy_refund" == t.value || "package_deliver_clerk" == t.value || "package_delivery_confirm" == t.value ? (console.log("申请归还"), 
        this.getRuruen(t, a)) : "lease_toy_apply_adopt" == t.value ? (console.log("填写归还"), 
        wx.navigateTo({
            url: "/packageB/member/OrderReturn/OrderReturn?id=" + a.id
        })) : "lease_toy_return_info" == t.value ? wx.navigateTo({
            url: "/packageA/others/order_ruturn_info/order_ruturn_info?id=" + a.id
        }) : this.isConfirmWriteOff(t.value) ? (console.log("自提点核销"), this.getQrImg(t, a)) : "snatch_regiment_barter" == t.value ? this.setData({
            showBarter: !0,
            showBarter_value: a.barter
        }) : 53 == t.value ? this.getBlindBoxGoods(a.id) : "close_reason" == t.value ? this.setData({
            refundShow: !0,
            refundText: a.close_reason
        }) : 140 == t.value ? wx.navigateTo({
            url: "/packageI/brand_resources/cardVoucherInfo/cardVoucherInfo?id=" + a.id
        }) : "city_delivery_detail" == t.value ? wx.navigateTo({
            url: "/packageA/member/order/orderLogisticsDetails/orderLogisticsDetails?id=" + a.id
        }) : "inventory_apply" == t.value ? this.getWarehouseList_CH() : 155 == a.plugin_id ? "new_blind_box_unpacking" == t.value ? wx.navigateTo({
            url: "/packageF/new_blind_box/blindBox/index?order_id=" + a.id
        }) : "new_blind_box_goods" == t.value ? this.setData({
            overlayShow: !0,
            newBlindBoxData: {
                api: t.api,
                order_id: a.id
            }
        }) : "new_blind_box_exchange_order" == t.value ? this.setData({
            drawShow: !0,
            drawType: 2,
            newBlindBoxData: {
                api: t.api,
                order_id: a.id
            }
        }) : "new_blind_box_sub_order" == t.value && this.setData({
            drawShow: !0,
            drawType: 1,
            newBlindBoxData: {
                api: t.api,
                order_id: a.id
            }
        }) : this.publicMessage(t, a);
    },
    onCloseRefundShow: function() {
        this.setData({
            refundShow: !1
        });
    },
    subscribeOn: function(e) {
        var t = e.currentTarget.dataset.codeurl;
        wx.navigateTo({
            url: "../../../packageF/tourAround/out/out?src=" + t
        });
    },
    goOrderList: function(e) {
        console.log(e);
        var t = e.currentTarget.dataset.item.id, a = this.data.orderType;
        wx.navigateTo({
            url: "/packageA/member/orderdetail/orderdetail?order_id=" + t + "&orderType=" + a
        });
    },
    getBlindBoxGoods: function() {
        var t = this, a = r.getNetAddresss("plugin.blind-box.api.index.blind-box-goods");
        a += "&order_id=" + this.data.orderPayId, r._getNetWork({
            url: a,
            success: function(a) {
                var r, o = a.data;
                1 == o.result ? t.setData((e(r = {}, "blindBoxInfo.show", !0), e(r, "blindBoxInfo.goods", o.data.order), 
                r)) : wx.showToast({
                    icon: "none",
                    title: o.msg,
                    duration: 1200
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    blindBoxInfoTap: function(t) {
        this.setData(e({}, "blindBoxInfo.show", !1));
    },
    publicMessage: function(e, t) {
        var a = this;
        e.api && wx.showModal({
            title: "提示",
            content: "确定".concat(e.name, "?"),
            success: function(o) {
                if (o.confirm) {
                    var i = "";
                    i += r.getNetAddresss(e.api), i += "&order_id=" + t.id, r._getNetWork({
                        url: i,
                        success: function(t) {
                            var r = t.data;
                            1 == r.result ? (a.getNetData(), wx.showToast({
                                title: "".concat(e.name, "成功"),
                                icon: "success",
                                duration: 1500,
                                success: function() {
                                    setTimeout(function() {
                                        wx.navigateBack({
                                            delta: 1
                                        });
                                    }, 1500);
                                }
                            })) : wx.showToast({
                                icon: "none",
                                title: r.msg,
                                duration: 1e3
                            });
                        },
                        fail: function(e) {
                            console.log(e);
                        }
                    });
                }
            }
        });
    },
    isConfirmWriteOff: function(e) {
        if ([ "store_package_deliver_clerk_confirm", "package_deliver", "package_delivery_confirm_code", "store_package_deliver", "reserve_simple" ].indexOf(e) > -1) return !0;
    },
    getQrImg: function(e, t) {
        var a = this, o = r.getNetAddresss(e.api);
        "reserve_simple" == e.value ? o += "&id=" + t.id : o += "&order_id=" + t.id, r._getNetWork({
            url: o,
            success: function(t) {
                var r = t.data;
                if (1 == r.result) {
                    if ("store_package_deliver_clerk_confirm" == e.value) return void a.getNetData();
                    r.data.qr_code_url && a.setData({
                        showQrcode: !0,
                        qrcode_url: r.data.qr_code_url
                    });
                } else wx.showToast({
                    icon: "none",
                    title: r.msg,
                    duration: 1e3
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    onClose: function() {
        this.setData({
            showQrcode: !1
        });
    },
    getRuruen: function(e, t) {
        var a = this, o = r.getNetAddresss(e.api);
        o += "&order_id=" + t.id, r._getNetWork({
            url: o,
            success: function(e) {
                var t = e.data;
                1 == t.result ? (wx.showToast({
                    title: t.msg,
                    icon: "none",
                    duration: 1500
                }), a.getNetData()) : wx.showToast({
                    icon: "none",
                    title: t.msg,
                    duration: 1e3
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    checklogistics: function(e, t) {
        0 == e.is_all_send_goods ? wx.navigateTo({
            url: "/packageA/member/order/logistics/logistics?id=" + e.id + "&api=" + t.api
        }) : wx.navigateTo({
            url: "/packageE/multiplePackages/multiplePackages?id=" + e.id + "&api=" + t.api
        });
    },
    deleteOrder: function(e, t, a) {
        var r = this;
        wx.showModal({
            title: "提示",
            content: "确定删除此订单?",
            success: function(a) {
                a.confirm && r.sentRequest(t.api, "&order_id=" + e.id, !1);
            }
        });
    },
    sendGoogs: function(e) {
        if (e && "confirm" !== e.detail) this.setData({
            dialogVisible: !1
        }), this.triggerEvent("stoprefresh", !1); else {
            var t = this;
            if ("supplier" == this.data.orderType) {
                var a = "";
                a += r.getNetAddresss("plugin.supplier.frontend.order.send");
                var o = {
                    order_id: t.data.orderPayId,
                    express_code: t.data.expressName.value,
                    express_company_name: t.data.expressName.name,
                    express_sn: t.data.numberName
                };
                r._postNetWork({
                    url: a,
                    showToastIn: !1,
                    data: o,
                    success: function(e) {
                        var a = e.data;
                        t.setData({
                            dialogVisible: !1
                        }), 1 == a.result ? (t.getNetData(), t.triggerEvent("stoprefresh", !1), t.triggerEvent("ConfrimOrderNotification", "pay"), 
                        wx.showToast({
                            icon: "success",
                            title: "发货成功",
                            duration: 1e3
                        })) : r.tips(a.msg);
                    },
                    fail: function(e) {
                        r.tips(e);
                    }
                });
            } else if ("subsidiary" == this.data.orderType || "storeMang" == this.data.orderType) {
                var i = "";
                i = r.getNetAddresss("plugin.subsidiary.frontend.order.send"), "storeMang" == this.data.orderType && (i = r.getNetAddresss("plugin.shop-assistant.frontend.order.send"));
                var s = {
                    order_id: t.data.orderPayId,
                    express_code: t.data.expressName.value,
                    express_company_name: t.data.expressName.name,
                    express_sn: t.data.numberName
                };
                r._postNetWork({
                    url: i,
                    showToastIn: !1,
                    data: s,
                    success: function(e) {
                        1 == e.data.result && (t.setData({
                            dialogVisible: !1
                        }), t.getNetData(), t.triggerEvent("stoprefresh", !1), t.triggerEvent("ConfrimOrderNotification", "pay"), 
                        wx.showToast({
                            icon: "success",
                            title: "发货成功",
                            duration: 1e3
                        }));
                    },
                    fail: function(e) {}
                });
            } else {
                var d = "";
                d += r.getNetAddresss("plugin.store-cashier.frontend.store.center.order-operation.send"), 
                d += "&order_id=" + t.data.orderPayId, d += "&express_code=" + t.data.expressName.value, 
                d += "&express_company_name=" + t.data.expressName.name, d += "&express_sn=" + t.data.numberName, 
                r._getNetWork({
                    url: d,
                    success: function(e) {
                        1 == e.data.result && (t.triggerEvent("ConfrimOrderNotification", "pay"), t.getNetData(), 
                        wx.showToast({
                            icon: "success",
                            title: "发货成功",
                            duration: 1e3
                        }), t.setData({
                            dialogVisible: !1
                        }));
                    },
                    fail: function(e) {
                        console.log(e);
                    }
                });
            }
        }
    },
    seleRegional: function() {
        this.setData({
            dateshow_1: !0
        });
    },
    onCancelbtn: function() {
        this.setData({
            dateshow_1: !1,
            inputExpressCompanyName: "",
            filterExpressCompanys: []
        });
    },
    onConfirmbtn: function(e) {
        var t = e.detail.index, a = e.detail.value, r = this.data.options;
        this.setData({
            dateshow_1: !1,
            regional: a,
            expressName: r[t],
            inputExpressCompanyName: "",
            filterExpressCompanys: []
        });
    },
    sentRequest: function(e, t, a) {
        var o = r.getNetAddresss(e);
        o += t, r._getNetWork({
            url: o,
            success: function(e) {
                var t = e.data;
                1 == t.result ? wx.showToast({
                    title: t.msg,
                    icon: "none",
                    duration: 1500,
                    success: function() {
                        setTimeout(function() {
                            wx.navigateBack({
                                delta: 1
                            });
                        }, 1500);
                    }
                }) : wx.showToast({
                    icon: "none",
                    title: t.msg,
                    duration: 1e3
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    comment: function(e, t) {
        wx.navigateTo({
            url: "/packageB/member/comment/comment?order=" + JSON.stringify(e || {})
        });
    },
    toPay: function(e, t) {
        wx.navigateTo({
            url: "/packageD/buy/orderPay/orderPay?order_id=" + e.id + "&status=2&api=" + t.api
        });
    },
    getTemplate: function(e, t) {
        var a = r.getNetAddresss("member.member.getMiniTemplateCorrespond"), o = this;
        r._getNetWork({
            url: a,
            data: {
                small_type: 2
            },
            success: function(a) {
                var r = a.data;
                if (1 == r.result) {
                    for (var i = [], s = 0; s < r.data.length; s++) i.push(r.data[s].template_id);
                    o.setData({
                        TemplateArray: i
                    }), wx.requestSubscribeMessage({
                        tmplIds: o.data.TemplateArray,
                        success: function(a) {
                            o._toRefund(e, t);
                        },
                        fail: function() {
                            o._toRefund(e, t);
                        }
                    });
                } else wx.showToast({
                    title: r.msg,
                    icon: "none",
                    duration: 1500
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    _toRefund: function(e, t) {
        var a;
        (console.log(t.value), 107 != this.data.order_data.plugin_id) ? "154" != e.plugin_id ? "snatch_regiment_refund" == t.value ? wx.navigateTo({
            url: "/packageD/member/myOrder/refund/refund?order_id=" + e.id + "&type=3"
        }) : wx.navigateTo({
            url: "/packageD/member/myOrder/refund/refund?order_id=" + e.id + "&type=1"
        }) : wx.navigateTo({
            url: "/packageD/member/myOrder/refund/refund?order_id=".concat(null === (a = e.travel_around_order) || void 0 === a ? void 0 : a.order_id, "&type=4&value=").concat(t.value, "&pluginid=").concat(e.plugin_id)
        }) : wx.navigateTo({
            url: "/packageD/member/myOrder/refund/refund?order_id=" + e.id + "&type=1&value=" + t.value
        });
    },
    cancleOrder: function(e, t) {
        var a = this;
        wx.showModal({
            title: "提示",
            content: "确定取消此订单?",
            success: function(r) {
                r.confirm && a.sentRequest(t.api, "&order_id=" + e.id, !1);
            }
        });
    },
    confirmOrder: function(e, t) {
        var a = this;
        0 != e.plugin_id && 44 != e.plugin_id || "" === this.data.custom_receipt_confirmation_html ? wx.showModal({
            title: "提示",
            content: "您确定收到货物?",
            success: function(r) {
                // r.confirm && a._confirmOrder_request(e, t);
                if(r.confirm) {
                  a._confirmOrder_request(e, t);
                  // 微信确认收货--新增
                  a.confirm_order_wechat(e, t)
                }
            }
        }) : this.setData({
            custom_receipt_confirmation_btn: t,
            custom_receipt_confirmation_item: e,
            custom_receipt_confirmation_show: !0
        });
    },
    CustomReceiptConfirmationSend: function() {
        this._confirmOrder_request(this.data.custom_receipt_confirmation_item, this.data.custom_receipt_confirmation_btn);
    },
    // 新增小程序确认收货组件
    confirm_order_wechat: function (e, t) {
      let uniacid = wx.getStorageSync('yz_basic_info').home.item.ViewSet.member.uniacid
      let id = e.id
      var a = this,
        o = r.getNetAddresss('YuZong.xiaochengxushouhuo');
      r._getNetWork({
        url: o,
        data: {
          order_id: id,
          uniacid: uniacid
        },
        success: function (e) {
          console.log(e, 'jahahahahah')
          var t = e.data;
          console.log(t,'iiiiiiiiiiiiiiiii')
          if (1 == t.result) {
            //拉起确认收货组件
            if (wx.openBusinessView) {
              console.log(';;;;;;;;;')
              wx.openBusinessView({
                businessType: 'weappOrderConfirm',
                extraData: {
                  merchant_id: t.data.weixin_mchid,
                  merchant_trade_no: t.data.pay_sn,
                  transaction_id: ''
                },
                success(e) {
                  console.log(e, '成功')
                  //dosomething
                },
                fail(e) {
                  console.log(e, '失败')
                  //dosomething
                },
                complete() {
                  //dosomething
                }
              });
            } else {
              //引导用户升级微信版本
            }
          } else {
            r.tips(t.msg)
          }
          //  ? (a.triggerEvent("ConfrimOrderNotification", "pay"), r.tips(t.msg)) : r.tips(t.msg);
        },
        fail: function (e) {
          console.log(e);
        }
      });
    },
    _confirmOrder_request: function(e, t) {
        var a = this, o = r.getNetAddresss(t.api);
        o += "&order_id=" + e.id, r._getNetWork({
            url: o,
            success: function(t) {
                var o = t.data;
                if (1 == o.result) {
                    if (r.tips(o.msg), e.is_boss) return void wx.navigateTo({
                        url: "/packageA/member/myOrder_v2/myOrder_v2?status=0&orderType=store"
                    });
                    a.getNetData();
                } else r.tips(o.msg);
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    toRefundDetail: function(e, t) {
        var a;
        154 == e.plugin_id ? wx.navigateTo({
            url: "/packageD/member/myOrder/Aftersales/Aftersales?refund_id=".concat(null === (a = e.travel_around_refund) || void 0 === a ? void 0 : a.id, "&pluginid=").concat(e.plugin_id)
        }) : wx.navigateTo({
            url: "/packageD/member/myOrder/Aftersales/Aftersales?refund_id=" + e.refund_id
        });
    },
    cashPayOrder: function(e, t) {
        var a = this;
        wx.showModal({
            title: "提示",
            content: "确定此订单已付款?",
            success: function(r) {
                r.confirm && a.sentRequest(t.api, "&order_id=" + e.id + "&order_pay_id=" + a.data.order_pay_id, !1);
            }
        });
    },
    verification: function(e, t) {
        wx.navigateTo({
            url: "/packageD/member/myOrder/orderVerification/orderVerification?order_id=" + e.id + "&api=" + t.api
        });
    },
    verificationCash: function(e, t) {
        var a = this;
        wx.showModal({
            title: "提示",
            content: "确定此订单已付款?",
            success: function(r) {
                r.confirm && a.HxsentRequest(t.api, "&order_id=" + e.id + "&order_pay_id=" + a.data.order_pay_id, !1);
            }
        });
    },
    HxsentRequest: function(e, t, a) {
        var o = r.getNetAddresss(e);
        o += t, r._getNetWork({
            url: o,
            success: function(e) {
                var t = e.data;
                1 == t.result ? wx.showToast({
                    title: t.msg,
                    icon: "none",
                    duration: 1500,
                    success: function() {
                        setTimeout(function() {
                            wx.reLaunch({
                                url: "/packageG/index/index"
                            });
                        }, 1500);
                    }
                }) : wx.showToast({
                    icon: "none",
                    title: t.msg,
                    duration: 1e3
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    gotoRefund: function(e) {
        wx.navigateTo({
            url: "/packageB/member/OrderReturn/OrderReturn?id=" + e
        });
    },
    gotoRefundCheck: function(e) {
        wx.navigateTo({
            url: "/packageB/member/OrderReturnCheck/OrderReturnCheck?id=" + e
        });
    },
    gotoMakeSure: function(e) {
        wx.navigateTo({
            url: "/packageB/member/OrderReturnSure/OrderReturnSure?id=" + e
        });
    },
    shopRecord: function(e) {
        wx.navigateTo({
            url: "/packageB/member/OrderRecord/OrderRecord?order_id=" + e + "&order_state=" + this.data.order_data.status_name
        });
    },
    payMoney: function(e, t) {
        var a = this, o = this;
        wx.showModal({
            title: "提示",
            content: "确认支付该订单?",
            success: function(e) {
                if (e.confirm) {
                    var i = "";
                    "supplier" == a.data.orderType || "subsidiary" == a.data.orderType || "storeMang" == a.data.orderType ? (i += r.getNetAddresss(t.api), 
                    i += "&order_id=" + o.data.orderPayId) : (i += r.getNetAddresss("plugin.store-cashier.frontend.store.center.order-operation.pay"), 
                    i += "&order_id=" + o.data.orderPayId), r._getNetWork({
                        url: i,
                        success: function(e) {
                            var t = e.data;
                            1 == t.result ? wx.showToast({
                                title: "支付成功",
                                icon: "success",
                                duration: 1500,
                                success: function() {
                                    setTimeout(function() {
                                        wx.navigateBack({
                                            delta: 1
                                        });
                                    }, 1500);
                                }
                            }) : wx.showToast({
                                icon: "none",
                                title: t.msg,
                                duration: 1e3
                            });
                        },
                        fail: function(e) {
                            console.log(e);
                        }
                    });
                }
            }
        });
    },
    deliverGoodsCancel: function(e, t) {
        var a = this;
        wx.showModal({
            title: "提示",
            content: "确定取消发货?",
            success: function(o) {
                if (o.confirm) {
                    var i = "";
                    "supplier" == a.data.orderType || "subsidiary" == a.data.orderType ? (i += r.getNetAddresss(t.api), 
                    i += "&order_id=" + e.id) : (i += r.getNetAddresss("plugin.store-cashier.frontend.store.center.order-operation.cancel-send"), 
                    i += "&order_id=" + e.id), r._getNetWork({
                        url: i,
                        success: function(e) {
                            var t = e.data;
                            1 == t.result ? (a.getNetData(), wx.showToast({
                                title: "取消发货成功",
                                icon: "success",
                                duration: 1500,
                                success: function() {
                                    setTimeout(function() {
                                        wx.navigateBack({
                                            delta: 1
                                        });
                                    }, 1500);
                                }
                            })) : wx.showToast({
                                icon: "none",
                                title: t.msg,
                                duration: 1e3
                            });
                        },
                        fail: function(e) {
                            console.log(e);
                        }
                    });
                }
            }
        });
    },
    collectGoods: function(e, t) {
        var a = this, o = this;
        wx.showModal({
            title: "提示",
            content: "确认收货?",
            success: function(e) {
                if (e.confirm) {
                    var i = "";
                    "supplier" == a.data.orderType || "subsidiary" == a.data.orderType || "storeMang" == a.data.orderType ? (i += r.getNetAddresss(t.api), 
                    i += "&order_id=" + o.data.orderPayId) : (i += r.getNetAddresss("plugin.store-cashier.frontend.store.center.order-operation.receive"), 
                    i += "&order_id=" + o.data.orderPayId), r._getNetWork({
                        url: i,
                        success: function(e) {
                            var t = e.data;
                            1 == t.result ? wx.showToast({
                                title: "收货成功",
                                icon: "success",
                                duration: 1500,
                                success: function() {
                                    setTimeout(function() {
                                        wx.navigateBack({
                                            delta: 1
                                        });
                                    }, 1500);
                                }
                            }) : wx.showToast({
                                icon: "none",
                                title: t.msg,
                                duration: 1e3
                            });
                        },
                        fail: function(e) {
                            console.log(e);
                        }
                    });
                }
            }
        });
    },
    closeOrderPay: function(e, t) {
        var a = this, o = this;
        wx.showModal({
            title: "提示",
            content: "确定关闭订单?",
            success: function(e) {
                if (e.confirm) {
                    var i = "";
                    "supplier" == a.data.orderType || "subsidiary" == a.data.orderType || "storeMang" == a.data.orderType ? (i += r.getNetAddresss(t.api), 
                    i += "&order_id=" + o.data.orderPayId) : (i += r.getNetAddresss("plugin.store-cashier.frontend.store.center.order-operation.close"), 
                    i += "&order_id=" + o.data.orderPayId), r._getNetWork({
                        url: i,
                        success: function(e) {
                            var t = e.data;
                            1 == t.result ? wx.showToast({
                                title: "关闭订单成功",
                                icon: "success",
                                duration: 1500,
                                success: function() {
                                    setTimeout(function() {
                                        wx.navigateBack({
                                            delta: 1
                                        });
                                    }, 1500);
                                }
                            }) : wx.showToast({
                                icon: "none",
                                title: t.msg,
                                duration: 1e3
                            });
                        },
                        fail: function(e) {
                            console.log(e);
                        }
                    });
                }
            }
        }), Dialog.confirm({
            title: "标题",
            message: "确定关闭订单?"
        }).then(function() {}).catch(function() {});
    },
    evaluate: function(e, t) {
        wx.navigateTo({
            url: "/packageD/member/myOrder/DeliveryEvaluate/DeliveryEvaluate?order_id=" + e.order_id + "&api=" + t.api + "&name=distributor"
        });
    },
    truckList: function(e, t) {
        wx.navigateTo({
            url: "/packageD/member/myOrder/truckList/truckList?order_id=" + t.id
        });
    },
    checkInvoice: function(e, t) {
        wx.navigateTo({
            url: "/packageD/member/myOrder/invoice/invoice?order_id=" + t.id
        });
    },
    confirmHotelOrder: function() {},
    numberNamebtn: function(e) {
        var t = e.detail.value;
        this.setData({
            numberName: t.trim()
        });
    },
    goToAdress: function() {
        var e = this.data.package_deliver.lat, t = this.data.package_deliver.lng, a = this.data.package_deliver.deliver_name || this.data.package_deliver.buyer_name, o = r.BMapTransqqMap(parseFloat(t), parseFloat(e));
        wx.openLocation({
            latitude: o.lat,
            longitude: o.lng,
            scale: 18,
            name: a
        });
    },
    evaluateOpration: function(e) {
        var t = e.target.dataset.btn, a = e.target.dataset.goods, r = e.target.dataset.order.id;
        if (0 == t.value) wx.navigateTo({
            url: "/packageD/member/evaluate/evaluate?order_id=" + r + "&id=" + a.id
        }); else if (1 == t.value) wx.navigateTo({
            url: "/packageD/member/addevaluate/addevaluate?order_id=" + r + "&item=" + JSON.stringify(a)
        }); else if (2 == t.value) {
            var o = "?order_id=" + r;
            o = (o = (o = o + "&goods_id=" + a.has_one_comment.goods_id) + "&comment_id=" + a.has_one_comment.id) + "&order_goods_id=" + a.id, 
            wx.navigateTo({
                url: "/packageD/member/CommentDetails/CommentDetails" + o
            });
        }
    },
    onChangeInventoryApplyRadio: function(e) {
        this.setData({
            inventoryApplyRadio: e.detail
        });
    },
    getWarehouseList_CH: function() {
        var e = this, t = r.getNetAddresss("plugin.order-inventory.frontend.index.warehouse-list");
        r._postNetWork({
            url: t,
            data: {},
            success: function(t) {
                var a = t.data;
                1 == a.result ? e.setData({
                    inventoryApplyList: a.data.list,
                    inventoryApplyRadio: a.data.list[0].id,
                    inventoryApplyPopup: !0
                }) : r.tips(a.msg);
            }
        });
    },
    confirmInventoryApply: function() {
        var e = this, t = r.getNetAddresss("plugin.order-inventory.frontend.index.inventory-apply");
        r._postNetWork({
            url: t,
            data: {
                warehouse_id: this.data.inventoryApplyRadio,
                order_id: this.data.orderPayId
            },
            success: function(t) {
                var a = t.data;
                r.tips(a.msg), 1 == a.result && e.getNetData();
            }
        });
    },
    issueGoodsClose: function() {
        this.setData({
            overlayShow: !1
        });
    },
    drawGoodsClose: function() {
        this.setData({
            drawShow: !1
        });
    },
    filterExpressCompany: function(e) {
        var t = e.detail, a = this.data.columns;
        this.setData({
            filterExpressCompanys: a.filter(function(e) {
                return -1 !== e.indexOf(t);
            }),
            inputExpressCompanyName: t
        });
    }
});